import 'dart:collection';

import 'package:flustars/flustars.dart';
import 'package:flutter/cupertino.dart';
import 'package:get/get_rx/src/rx_types/rx_types.dart';
import 'package:xiongmao_clean_flutter_module/business/common/contract/iview/contract_edit_seal_iview.dart';
import 'package:xiongmao_clean_flutter_module/business/common/workpost/iview/work_rules_save_iview.dart';
import 'package:xiongmao_clean_flutter_module/generated/add_signature_result_entity.dart';
import 'package:xiongmao_clean_flutter_module/mvp/base_page_presenter.dart';
import 'package:xiongmao_clean_flutter_module/net/http_config.dart';

import '../../../../net/dio_utils.dart';
import '../../../../net/http_api.dart';
import '../../../../util/log_utils.dart';
import '../bean/contract_info_entity.dart';
import '../controller/contract_pay_info_controller.dart';
import '../iview/contract_pay_info_iview.dart';

/**
 *
 */
class ContractEditSealPresenter extends BasePagePresenter<ContractEditSealIView> with WidgetsBindingObserver {
  //获取用户规则
  Future<dynamic> addSignature(HashMap<String, String> params) {
    return requestNetwork<AddSignatureResultEntity>(Method.get, url: HttpApi.ADD_SIGNATURE, queryParameters: params, isShow: true, isClose: true, onSuccess: (data) {
      if (data != null) {
       view.addSignatureResultEntity(data);
      }
    }, onError: (_, __) {});
  }
}
